#ifndef MAINWINDOW_H
#define MAINWINDOW_H

#include <QMainWindow>
#include <QProcess>

#include "eventfilter.h"

QT_BEGIN_NAMESPACE
namespace Ui { class MainWindow; }
QT_END_NAMESPACE

class MainWindow : public QMainWindow
{
    Q_OBJECT

public:
    MainWindow(QWidget *parent = nullptr);
    ~MainWindow();

private slots:
    void on_checkBox_toggled(bool checked);
    void on_radioButton_GtkGUI_toggled(bool checked);
    void on_radioButton_QtGUI_toggled(bool checked);
    void on_pushButton_clicked();
    void worker_state_changed(QProcess::ProcessState newState);
    void worker_ready_read_stdout();
    void worker_ready_read_stderr();

private:
    Ui::MainWindow *ui;
    EventFilter *filter;
    QProcess *worker;
    QWindow *window;
    QWidget *container;
    QString workname;
    WId hWnd;
    bool embedded;
};
#endif // MAINWINDOW_H
